package cn.hinglo.gameclaw.admin.dao;

import cn.hinglo.gameclaw.data.dbdao.MyMapper;
import cn.hinglo.gameclaw.user.bean.Notice;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @createTime: 2018/1/8
 * @author: HingLo
 * @description: 公告管理的Dao
 */
@Repository
public interface NoticeDao extends MyMapper<Notice> {

    /***
     * 通知消息返回
     * @return 返回通知消息的集合
     */
    @Select("select * from notice where type=1 and status=1")
    List<Notice> findTypeDao();

}
